package com.zenika.zentracker.hibernate.interceptor;

import java.io.Serializable;

import org.hibernate.EmptyInterceptor;
import org.hibernate.type.Type;

public class DummyInterceptor extends EmptyInterceptor {

    private static final long serialVersionUID = -6108132951017025617L;

    public boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
        System.out.println("Dummy have been called. Thanks for him ! " + this);
        return super.onLoad(entity, id, state, propertyNames, types);
    }
    
}
